package changYongapi;

import java.util.Scanner;

public class api1 {
    public static void main(String[] args) {
      /*  Scanner input = new Scanner(System.in);
        System.out.println(input.next());*/
        Scanner input = new Scanner(System.in);
        int a = input.nextInt();
        int b = input.nextInt();
        int c = input.nextInt();
        System.out.println(Math.max(Math.max(a,b),c));
        System.out.println(a > b ? a :(b > c ? b : c));
    }
}
